package com.dwxt.common.base;

public enum StatusCode {

    SUCCESS(200, "SUCCESS"),
    FAIL(500, "服务器内部错误"),
    PARAMETER_WRONG(1001, "请求参数有误"),
    USERNAME_PASSWORD_WRONG(1002, "用户名或密码错误"),
    PERMISSION_FAIL(1003, "权限不足,请重新登录"),
    SMS_CANNOT_USE(1004, "短信服务器无法连接！"),
    MAC_ALREADY(1006, "mac地址已存在！"),



    /**  公共都能用的 */
    ID_IS_NULL(3000, "id不能为空"),


    /**  全民健身数据统计分析平台 */
    HEALTH_ID_IS_NULL(6001, "运动健康关联id不能为空"),
    STREET_ID_IS_NULL(6002, "街道id不能为空"),
    SPORTS_TRAINING_ID_IS_NULL(6003, "体育培训关联id不能为空"),
    WISDOM_TRAILS_ID_IS_NULL(6004, "智慧步道关联id不能为空"),
    WISDOM_VENUES_ID_IS_NULL(6005, "智慧场馆关联id不能为空"),
    ALARM_INFO_ID_IS_NULL(6006, "报警信息id不能为空"),
    SMART_DEVICE_ID_IS_NULL(6007, "智能装备id不能为空"),
    ALARM_HANDLE_IS_NULL(6008, "无报警处理信息"),
    ;

    StatusCode(Integer status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    private Integer status;
    private String msg;

    public Integer getStatus() {
        return status;
    }

    public String getMsg() {
        return msg;
    }


}
